home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
BNU22SR2.ZIP
/
src
/
binutils.2
/
libibert
/
strdup.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-30
|
172b
|
11 lines
char *
strdup(s)
char *s;
{
char *result = (char*)malloc(strlen(s) + 1);
if (result == (char*)0)
return (char*)0;
strcpy(result, s);
return result;
}